package io.dy.mq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author dmj
 * @date 2024年04月18日 下午4:55
 */
@Component
public class DirectConsumer {

    @RabbitListener(queues = {"dy.direct.queue01"})
    public void listen01(String msg){
        System.out.println("消费者01消费:" + msg);
    }


    @RabbitListener(queues = {"dy.direct.queue01"})
    public void listen02(String msg){
        System.out.println("消费者02消费:" + msg);
    }
}
